<template>
	<u-empty mode="list" :text="text" :icon="icon" :show="!list.length" :width="width" :height="height"></u-empty>
</template>

<script>
export default {
	name: "v-empty",
	props: {
		text: {
			type: String,
			default: "暂无数据",
		},
		list: {
			type: Array,
			default: () => [],
		},
		icon: {
			type: String,
			default: "http://cdn.uviewui.com/uview/empty/list.png",
		},
		width: {
			type: [String, Number],
			default: "160",
		},
		height: {
			type: [String, Number],
			default: "160",
		},
	},
}
</script>

<style lang="scss" scoped></style>
